<?php $this->Yy->addCss('/css/guestbook/index.css');?>
<div class="guestbook">
    <div class="box1">
        <div class="box1_nav" style="float:left;">
            <div class="box1_nav_top">
                15821157845
                <p>24小时服务热线</p>
            </div>
            <div class="box1_right">
                <p>品牌年度服务</p>
                <i>BRAND ANNUAL SERVICE</i>
            </div>
            <div class="box1_right">
                <p>新品牌塑造</p>
                <i>NEW BRAND CREATION</i>
            </div>
            <div class="box1_right">
                <p>老品牌提升</p>
                <i>OLD BRAND UPGRADE</i>
            </div>
            <p class="box1_nav_p">联系我们</p>
            <div class="box1_nav_list">
                <div class="contact">
                    <p>上海浒尔实业有限公司</p>
                    电话:021-51870997 <br>   
                    手机：15821157845 <br>
                    E-mail:15821157845@163.com <br>
                    网址：www.shrstg.com
                </div>
            </div>
        </div>
        <div class="box1_list"  style="float:right;">
            <form method="post" action="/guestbook/guestbook"  class="dataForm">
                <div>
                    <label for="">姓名：</label>
                    <input name="name" type="text" placeholder="请填写您的姓名">
                </div>
                <div>
                    <label for="">手机号：</label>
                    <input name="phone" type="text" placeholder="请输入您的联系方式">
                </div>
                <div>
                    <label for="">内容：</label>   
                    <textarea name="content" cols="20" rows="10" placeholder="请留下您想说的话..."></textarea>
                </div>
                <button type="submit" class="zSubmit">提交留言</button>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript">
	//消息弹窗
    $(".dataForm").Validform({ 
        tiptype:function(msg){        //提交数据显示
            layer.alert(msg,{icon:0});
        },
        tipSweep:true,
        ajaxPost:true,  
        callback:function(o){              //根据返回的状态码提示语句
            if (o.status == 200) {
                layer.msg(o.message,{
                    icon:6,
                    skin:'layer_mobile_login',
                    time:1200
                });
                setTimeout(function () {  
                    self.location=o.return_url;      
                },1500);
            }else if (o.status == 300) {
                layer.msg(o.message,{
                    icon:6,
                    skin:'layer_mobile_login',
                    time:1200
                });
                setTimeout(function () {  
                    history.go(0) ;      
                },1500);    
            }else {
                layer.msg(o.message,{
                    icon:5,
                    skin:'layer_mobile_login',
                    time:1200
                });    
            }    
        }
    });
</script>